<?php
require_once(MODX_BASE_PATH . 'assets/snippets/gCart/config.php');
require_once(MODX_BASE_PATH . 'assets/snippets/gCart/include/gDiscount.php');
require_once(MODX_BASE_PATH . 'assets/snippets/gCart/include/gCart.inc.php');

$gParams  = array();
$gParams['gItemTpl'] = $modx->getChunk($gItemTpl);
$gParams['gCartTpl'] = $modx->getChunk($gCartTpl);
$gParams['gAjaxTpl'] = $modx->getChunk($gAjaxTpl);
$gParams['gEmptyTpl'] = $modx->getChunk($gEmptyTpl);

if(!$gID) $gParams['gID'] = '775498075155100';
if(!$gKey) $gParams['gKey'] = 'aUxxZT8A_NtOiiaP0U1-Og';
if(!$gTaxRate) $gParams['gTaxRate'] = '0.065';
if(!$gTaxShipping) $gParams['gTaxShipping'] = 'true';
if(!$gZipCode) $gParams['gZipCode'] = '62902';
if(!$gCity) $gParams['gCity'] = 'Carbondale';
if(!$gState) $gParams['gState'] = 'IL';
if(!$gShipID) $gParams['gShipID'] = 'Blue Sky';


$gCart = processCart($gParams);

return $gCart;
?>